<template>
  <div id="login-log">
    <Form inline :label-colon="true" class="search-form" :label-width="70">
      <FormItem label="账号">
        <Input v-model="params.userAccount" placeholder="请输入账号"/>
      </FormItem>
      <FormItem label="姓名">
        <Input v-model="params.rfUserName" placeholder="请输入姓名"/>
      </FormItem>
      <FormItem :label-width="0">
        <Button
          type="primary"
          @click="publicGetData(true)"
          style="margin-right: 10px"
          v-auth="'列表'"
        >搜索
        </Button>
      </FormItem>
    </Form>
    <!-- 面包屑 -->
    <Breadcrumb></Breadcrumb>
    <BaseTable
      ref="baseTable"
      :action="action.readLoginLog"
      :columns="columns"
    />
  </div>
</template>

<script>
import { tableMixin } from '../../../mixin'
import API_KEY from '../../../api'
import columns from './loginlog-columns'
export default {
  name: 'LoginLog',
  mixins: [tableMixin],
  data () {
    return {
      params: {
        // 表单输入框数据双向绑定
        userAccount: '',
        rfUserName: ''
      },
      action: {
        // 根据分页参数获取表格数据接口（查询表格数据只需要readMenuByPage参数和columns参数）
        readLoginLog: API_KEY.log.readLoginLog
      },
      columns
    }
  }
}
</script>

<style scoped>

</style>
